package com.campus_activity.campus_activity.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 文章点赞表
 * @TableName t_article_like
 */
@TableName(value ="t_article_like")
@Data
public class ArticleLike implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 点赞帖子id
     */
    private Long articleId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 逻辑删除(0 否 1 是)
     */
    @TableLogic
    private Integer isDelete;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}